<template>
  <div class="b-crumbs">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item v-for="(item, index) of crumbsList" :key="index">
        <router-link v-if="index == '0'" to="/index">{{
          item.meta.title
        }}</router-link>
        <span v-else>{{ item.meta.title }}</span>
      </el-breadcrumb-item>
    </el-breadcrumb>
    <hr />
  </div>
</template>
<script>
export default {
  name: "BCrumbs",
  computed: {
    crumbsList() {
      return this.$route.matched;
    }
  }
};
</script>
